﻿using EquipmentManagement.Domain.Entities;
using Standard;
using Standard.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EquipmentManagement.Application.IServices
{
    /// <summary>
    /// 设备类型接口
    /// </summary>
    public interface IDeviceTypeService
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> Add(DeviceType model);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> Update(DeviceType model);
        /// <summary>
        /// 删除（逻辑删除）
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ApiResult<int> Delete(string id);
        /// <summary>
        /// 获取列表（分页）
        /// </summary>
        /// <param name="paging"></param>
        /// <returns></returns>
        ApiPaging<DeviceType> GetList(PagingInput paging);
        /// <summary>
        /// 获取详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ApiResult<DeviceType> Get(string id);
        /// <summary>
        /// 获取所有
        /// </summary>
        /// <returns></returns>
        ApiResult<List<DeviceType>> Gets();
    }
}
